3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage picking parts styles.
You can use the Q3PickPartsStyle_New function to create a new picking parts style object.
TQ3StyleObject Q3PickPartsStyle_New (TQ3PickParts parts);
The Q3PickPartsStyle_New function returns, as its function result, a new style object having the picking parts style specified by the parts parameter. See "Picking Parts Styles" for a list of masks you can use to construct a picking parts style value.
If a new style object could not be created, Q3PickPartsStyle_New returns the value NULL .
To change the current picking parts style, you must actually draw the style object. You can call Q3Style_Submit to draw the style in retained mode or Q3PickPartsStyle_Submit (described next) to draw the style in immediate mode.
See "Picking Parts Styles" for a description of picking parts styles.
You can use the Q3PickPartsStyle_Submit function to submit a picking parts style in immediate mode.
TQ3Status Q3PickPartsStyle_Submit (
TQ3PickParts parts,
TQ3ViewObject view);
You can use the Q3PickPartsStyle_Get function to get the picking parts style value of a picking parts style.
TQ3Status Q3PickPartsStyle_Get (
TQ3StyleObject pickPartsObject,
TQ3PickParts *parts);
The Q3PickPartsStyle_Get function returns, in the parts parameter, a pointer to the current picking parts value of the style object specified by the pickPartsObject parameter. See "Picking Parts Styles" for a list of masks used to construct a picking parts value.
You can use the Q3PickPartsStyle_Set function to set the picking parts style value of a picking parts style.
TQ3Status Q3PickPartsStyle_Set (
TQ3StyleObject pickPartsObject,
TQ3PickParts parts);
Previous | QD3D Book | Overview | Chapter Contents | Next |